﻿
Imports Microsoft.Windows.Design.Policies
Imports Microsoft.Windows.Design.Model

Class WPFSearchDataGridPolicy
    Inherits PrimarySelectionPolicy

    Public Overrides ReadOnly Property IsSurrogate() As Boolean
        Get
            Return True
        End Get
    End Property

    Public Overrides Function GetSurrogateItems(ByVal item As Microsoft.Windows.Design.Model.ModelItem) As IEnumerable(Of Microsoft.Windows.Design.Model.ModelItem)
        Dim _parent As ModelItem = item.Parent
        Dim e As New List(Of ModelItem)
        If Not IsNothing(_parent) Then
            e.Add(_parent)
        End If
        Return e
    End Function

End Class
